<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页|通用签到系统</title>
<%
	Cookie[] c=request.getCookies();
	int len=c.length;
	String username=null;
	int  usertype=-1;
	for(int i=0;i<len;++i){
		if(c[i].getName().equals("SIUN")){
			username=c[i].getValue();
		}
		if(c[i].getName().equals("SITN")){
			usertype=Integer.parseInt(c[i].getValue());
		}
	}
%>
</head>
<body>
<center>
<h1><font color="red">首页|通用签到系统</font></h1>
<%
	if(usertype==-1){
		out.println("您没有登陆，请登陆后进行操作！");
	}else if(usertype==0){
		out.println("欢迎您，亲爱的可用用户，"+username);
	}else if(usertype==1){
		out.println("欢迎您，");
	}
%>
</center>
</body>
</html>